package com.bawei.module_classify.mvp;

import com.bawei.module_classify.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * @author : zhiyu
 * @date : 2021/12/15
 * @content :product_details
 */
public class GoodAdapter extends BaseQuickAdapter<Data, BaseViewHolder> {
    public GoodAdapter( @Nullable List<Data> data) {
        super(R.layout.item_type, data);
        addChildClickViewIds(R.id.tv_type);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, Data data) {
        baseViewHolder.setText(R.id.tv_type, data.getCategory_name());
    }
}
